// 加载 utils/uitls.js
import './utils/utils'
// 加载 utils/http.js
import './utils/http'
// app.js
App({
  onLaunch(){
    this.getToken()
  },
  //获取token
  getToken(){
    this.token=wx.getStorageSync('token')
  },
  //存储token
  setToken(token,refreshtoken){
    wx.setStorageSync('token',token)
    wx.setStorageSync('refreshtoken',refreshtoken)
    this.token=token
  }
})
